package cn.com.surker.sale.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 销售合同补贴表
 * </p>
 *
 * @author admin
 * @since 2024-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SaleContractSubsidy implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公司ID
     */
    private Long orgId;

    /**
     * 合同ID
     */
    private Long contractId;

    /**
     * 补贴方式(0:泵送方量1:运输方量,2:超时浇筑,3:润管剂/:润泵剂,4:接管补助,5：砂浆)
     */
    private Integer subsidyType;
    /**
     * 泵送规格ID
     */
    private Long pumpNormId;

    /**
     * 计算方式(0:按方量计算,1:按批次计算2:按车次计算)
     */
    private Integer countType;

    /**
     * 最小方量
     */
    private Double minStere;

    /**
     * 计算方量
     */
    private Double countStere;

    /**
     * 次数
     */
    private Integer num;
    /**
     * 附加计算方式(运距补助计算)
     */
    private Integer additionalCountType;

    /**
     * 价格
     */
    private Double price;

    private Double taxPrice;

    /**
     * 状态(0:启用1：禁用)
     */
    private Integer status;


    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date takeTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date expireTime;


    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    /**
     * 修改人
     */
    private String updator;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date updateTime;
    public SaleContractSubsidy(){}
    public SaleContractSubsidy(Long orgId, Long contractId, Integer subsidyType, Integer countType, Double minStere, Double countStere, Integer num, Double price, Integer status, Date takeTime, String remark, String creator, Date createTime) {
        this.orgId = orgId;
        this.contractId = contractId;
        this.subsidyType = subsidyType;
        this.countType = countType;
        this.minStere = minStere;
        this.countStere = countStere;
        this.num = num;
        this.price = price;
        this.status = status;
        this.takeTime = takeTime;
        this.remark = remark;
        this.creator = creator;
        this.createTime = createTime;
    }
}
